package com.ruoyi.experiment.service.impl;

import java.time.LocalDateTime;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.experiment.mapper.CtfExperimentalEnvironmentExampleMapper;
import com.ruoyi.experiment.domain.CtfExperimentalEnvironmentExample;
import com.ruoyi.experiment.service.ICtfExperimentalEnvironmentExampleService;

import javax.annotation.Resource;

/**
 * CTF实验环境实例列Service业务层处理
 * 
 * @author 邓鑫
 * @date 2023-07-29
 */
@Service
public class CtfExperimentalEnvironmentExampleServiceImpl implements ICtfExperimentalEnvironmentExampleService 
{
    @Resource
    private CtfExperimentalEnvironmentExampleMapper ctfExperimentalEnvironmentExampleMapper;

    /**
     * 查询CTF实验环境实例列
     * 
     * @param ctfEnvironmentExampleId CTF实验环境实例列主键
     * @return CTF实验环境实例列
     */
    @Override
    public CtfExperimentalEnvironmentExample selectCtfExperimentalEnvironmentExampleByCtfEnvironmentExampleId(Long ctfEnvironmentExampleId)
    {
        return ctfExperimentalEnvironmentExampleMapper.selectCtfExperimentalEnvironmentExampleByCtfEnvironmentExampleId(ctfEnvironmentExampleId);
    }

    /**
     * 查询CTF实验环境实例列列表
     * 
     * @param ctfExperimentalEnvironmentExample CTF实验环境实例列
     * @return CTF实验环境实例列
     */
    @Override
    public List<CtfExperimentalEnvironmentExample> selectCtfExperimentalEnvironmentExampleList(CtfExperimentalEnvironmentExample ctfExperimentalEnvironmentExample)
    {
        return ctfExperimentalEnvironmentExampleMapper.selectCtfExperimentalEnvironmentExampleList(ctfExperimentalEnvironmentExample);
    }

    /**
     * 新增CTF实验环境实例列
     * 
     * @param ctfExperimentalEnvironmentExample CTF实验环境实例列
     * @return 结果
     */
    @Override
    public int insertCtfExperimentalEnvironmentExample(CtfExperimentalEnvironmentExample ctfExperimentalEnvironmentExample)
    {
        return ctfExperimentalEnvironmentExampleMapper.insertCtfExperimentalEnvironmentExample(ctfExperimentalEnvironmentExample);
    }

    /**
     * 修改CTF实验环境实例列
     * 
     * @param ctfExperimentalEnvironmentExample CTF实验环境实例列
     * @return 结果
     */
    @Override
    public int updateCtfExperimentalEnvironmentExample(CtfExperimentalEnvironmentExample ctfExperimentalEnvironmentExample)
    {
        return ctfExperimentalEnvironmentExampleMapper.updateCtfExperimentalEnvironmentExample(ctfExperimentalEnvironmentExample);
    }

    /**
     * 批量删除CTF实验环境实例列
     * 
     * @param ctfEnvironmentExampleIds 需要删除的CTF实验环境实例列主键
     * @return 结果
     */
    @Override
    public int deleteCtfExperimentalEnvironmentExampleByCtfEnvironmentExampleIds(Long[] ctfEnvironmentExampleIds)
    {
        return ctfExperimentalEnvironmentExampleMapper.deleteCtfExperimentalEnvironmentExampleByCtfEnvironmentExampleIds(ctfEnvironmentExampleIds);
    }

    /**
     * 删除CTF实验环境实例列信息
     * 
     * @param ctfEnvironmentExampleId CTF实验环境实例列主键
     * @return 结果
     */
    @Override
    public int deleteCtfExperimentalEnvironmentExampleByCtfEnvironmentExampleId(Long ctfEnvironmentExampleId)
    {
        return ctfExperimentalEnvironmentExampleMapper.deleteCtfExperimentalEnvironmentExampleByCtfEnvironmentExampleId(ctfEnvironmentExampleId);
    }

}
